'''
Created on Jun 28, 2011

@author: ioan
'''
import Model.iCommand
import Model.CommandManager


class CommandInvoker(object):
    '''
    classdocs
    '''

    def __init__(self, commandManager=Model.CommandManager):
        '''
        Constructor
        '''
        self.commandManager = commandManager

    def invokeCommand(self, iCommand=Model.iCommand):
        iCommand.execute()
        self.commandManager.addCommand(iCommand)
